const express = require('express');
const router = express.Router();
const constants = require('../data/constants')

const deviceController = require('../controller/v1/device');

/**
 * @api {get} /device/list 查询设备列表
 * @apiDescription 查询设备列表
 * @apiName DeviceList
 * @apiGroup 设备管理
 * @apiVersion 1.0.0
 */
router.get(constants.version + 'device/list', deviceController.list);

/**
 * @api {get} /device/bye 停止播放
 * @apiDescription 请求视频
 * @apiName DeviceBye
 * @apiGroup 设备管理
 * @apiVersion 1.0.0
 */
router.get(constants.version + 'device/bye', deviceController.bye);

module.exports = router;